import { ActionButtonsTemplate, SelectOption } from '@/api/global/types'
import { UnwrapRef } from 'vue'

export type CurdData = {
  id: number
  productname: string
  producturlname: string
  primary_pid: number | null
  vice_pid: number[]
  sales_pids: number[]
  recommend_pids: number[]
  product_photo: string
  closeshots_photo: string
  pmv_id: number | null
  smv_id: number[]
  describe: string
  full_describe: string
  seotitle: string
  seodesc: string
  views_number: number
  creator?: number
  create_time?: string
  updater?: number
  update_time?: string
  is_del: number
  status: '0' | '1'
  storename: any[]
  storename_val?: string
  primary_pid_name?: string
  vice_pid_name?: string
  sales_pids_list?: any[]
  recommend_pids_list?: any[]
  pmv_id_name?: string
  smv_id_name?: string[]
  productRelation?: any[]
  product_photo_list?: any[]
  closeshots_photo_list?: any[]
  creator_name?: string
  updater_name?: string
  pmv_id_list?: any[]
  smv_id_list?: any[]
}

export type UploadItem = {
  url: string
  name: string
  response: string
}

export type FieldEnum = {}

export type SchemaConfig = {
  actionButtonsTemplate?: ActionButtonsTemplate
  fieldEnum?: FieldEnum
  uploadList?: string[]
  UploadArr?: UploadItem[]
  productPreViewIdStore?
  setValues?: UnwrapRef<any>
  categoryList?
  brandList?
  currencyList?
  modelList?
  standardsList?
}
